Skip to content

fix(id): grant INPUT scope in world_bench guest_replay journal (#8316) - #9995

Merged
dezren39 merged 1 commit into
mainfrom
queue/15288-8316-guest-replay-scopes
Nov 14, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/15288-8316-guest-replay-scopes

Conversation

@dezren39

@dezren39 dezren39 commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Fixes #8316.

Diagnosis (writer vs reader, as the issue asked)

The bench harness is at fault; the restore validator is correct.

bench_guest_replay issues its synthetic participant with scopes JOIN | CHAT, hand-builds the journal's Issued entry with those same scopes, then appends Committed Input events from participant 1. WorldCore::restore validates each event kind against the participant's scopes in the Issued entry (behavior pinned by restore_refuses_input_and_chat_without_the_matching_scope), so it refuses the first committed event: journal event at sequence 1 uses participant 1 without INPUT scope. No real writer can produce that journal — submitting input through the public API requires the INPUT scope at write time. The bench has been broken since the restore scope validation landed; because guest_replay runs third of six, many_worlds never ran, which is what blocks the #7064 measurement and #8239 verification.

Change

pkgs/id/benches/world_bench.rs only: issue the participant with WorldScopes::GUEST (JOIN|CHAT|INPUT) and record the same set in the constructed Issued entry; comment updated to name the scope validation. No product code changed.

Verification (laptop, this branch)

  • Reproduced the failure first at main e9cf612: exact error from the issue.
  • cargo bench -p id --bench world_bench -- --only guest_replay (full size, 10,000 events × 5 reps): bench guest_replay unit=us_per_event median=0.821 — passes.
  • Full bench, --quick: all six stages complete, including bench many_worlds … p99_ms=9.130 target_p99_ms=50 target_met=true and fuel_spin_isolation … target_met=true.

Queue: task 15288 (triage, fix done in-claim — effort/s, fully diagnosed), lane code-a.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

bench_guest_replay issued its synthetic participant JOIN|CHAT only, then hand-built a journal of Committed Input events from that participant. WorldCore::restore validates each event kind against the participant scopes in the Issued entry, so restore refused the first committed event (sequence 1) and the whole bench died before many_worlds could run. Issue the guest scope set (JOIN|CHAT|INPUT) in both the capability and the constructed Issued entry. The restore validator is correct (restore_refuses_* tests pin it); the harness journal was one no real writer could produce.
@dezren39
dezren39 requested a review from a team as a code owner November 14, 2026 13:05
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T13:05:24.407131Z
We couldn’t complete this review. Comment @codex review to try again.
1ee0085 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 31f4c91d-02e2-4487-a494-3bfcf4208adb
Commits

Reviewing files that changed from the base of the PR and between eaf3915 and 1ee0085.

Files selected for processing: 1

  • pkgs/id/benches/world_bench.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

id: world_bench fails at restore — journal event at sequence 1 uses participant 1 without INPUT scope

1 participant